import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        int n = num.nextInt();

        for (int i = 1; i <= n; i++) {
            System.out.println("Happy new year!Good luck!");
        }
    }
}
